//
//  CommonProblemViewController.m
//  ZhongKeXinHeater
//
//  Created by Kendama on 2017/6/14.
//  Copyright © 2017年 DT. All rights reserved.
//

#import "CommonProblemViewController.h"

@interface CommonProblemViewController ()
@property (nonatomic, strong) NSArray *dataSource;
@property (nonatomic, strong) UITableView *tableView;

@end

@implementation CommonProblemViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)refreshBaseControlValue {
    
    [self setLeftButtonImage:[UIImage imageNamed:@"nav_icon_back"]];
    [self setNavigationTitle:@"常见问题" titleColor:[UIColor blackColor]];
    self.navigationBar.backgroundColor = [UIColor colorWithHexString:@"D0D0D0"];
    
    
    [self masLayoutSubviews];
}



#pragma mark -- 懒加载
- (UITableView *)tableView
{
    if(!_tableView)
    {
        UIView *superView = self.view;
        _tableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, 0, 0) style:UITableViewStyleGrouped];
        _tableView.scrollEnabled = NO;
        [superView addSubview:_tableView];
    }
    return _tableView;
}


- (NSArray *)dataSource
{
    if(!_dataSource)
    {
        _dataSource = @[@"常见问题",@"意见反馈",@"关于我们"];
        
    }
    return _dataSource;
}

- (void)masLayoutSubviews {
    [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).with.offset(64);
        make.width.equalTo(self.view);
        make.bottom.equalTo(self.view);
        //        make.height.mas_equalTo(px1920Height(<#px#>));
    }];
}

@end
